package com.waqu.common.utils.abtester;

import java.io.Serializable;

public class Flow implements Serializable {

	private static final long serialVersionUID = 4264170131074132333L;
	
	private String name;
	private int weight;
	private int currentWeight = 0;
	private int effectiveWeight;

	public Flow(String name, int weight) {
		this.name = name;
		this.weight = weight;
		this.effectiveWeight = this.weight;
		this.currentWeight = 0;
	}

	public String getName() {
		return name;
	}

	public Flow setName(String name) {
		this.name = name;
		return this;
	}

	public int getWeight() {
		return weight;
	}

	public Flow setWeight(int weight) {
		this.weight = weight;
		return this;
	}

	public int getCurrentWeight() {
		return currentWeight;
	}

	public void setCurrentWeight(int currentWeight) {
		this.currentWeight = currentWeight;
	}

	public int getEffectiveWeight() {
		return effectiveWeight;
	}

	public void setEffectiveWeight(int effectiveWeight) {
		this.effectiveWeight = effectiveWeight;
	}

}